package com.heima.wemedia.controller;



import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.entity.WmUser;
import com.heima.wemedia.service.WmUserService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


/**
 * 自媒体用户表(WmUser)表控制层
 *
 * @author makejava
 * @since 2023-06-26 21:06:24
 */
@RestController
@RequestMapping("/api/v1/user")
public class WmUserController  {
    /**
     * 服务对象
     */
    @Resource
    private WmUserService wmUserService;

    @PostMapping(path = "/save")
    @ApiOperation("保存自媒体用户信息")
    public ResponseResult save(@RequestBody WmUser wmUser) {
        return  wmUserService.saveWmUser(wmUser);
    }


}

